/**
 * 
 */
package com.vodden.money.shared;

import java.util.Set;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author richard
 *
 */

@PersistenceCapable
public class Journal {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	String id;
	
	@Persistent
	private Set<String> entries;

	/**
	 * @param key the key to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the key
	 */
	public String getId() {
		return id;
	}

	public void addEntry (String entry) {
		entries.add(entry);
	}
	
}
